const express = require("express")
const router = express.Router()
const handler = require("./handler/wechat")

// 获取菜单
router.get("/wechat/menu/findMenuInfo", handler.getMenu)

// 获取单个菜单
router.get("/wechat/menu/get/:id", handler.getOneMenu)

// 更新菜单
router.put("/wechat/menu/update", handler.updateMenu)

// 新增菜单
router.post("/wechat/menu/save", handler.saveMenu)

// 删除
router.delete("/wechat/menu/remove/:id", handler.deleteMenu)

module.exports = router
